# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Helmut Dersch's panorama toolbox library"
HOMEPAGE="http://panotools.sf.net"
SRC_URI="mirror://sourceforge/panotools/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
DEPEND="media-libs/libpng
		media-libs/tiff
		media-libs/jpeg
		sys-libs/zlib
		virtual/jdk"

S=${WORKDIR}/${P}

src_compile() {
	econf "--with-java=${JAVA_HOME}"
	emake
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc README README.linux AUTHORS NEWS doc/*.txt
	newdoc COPYING LICENSE
}
